Optimal. Leaf size=111 \[ \frac{\left (a+b \sec ^2(e+f x)\right )^{5/2}}{5 b^2 f}-\frac{(a+2 b) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{3 b^2 f}+\frac{\sqrt{a+b \sec ^2(e+f x)}}{f}-\frac{\sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a+b \sec ^2(e+f x)}}{\sqrt{a}}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.141112, antiderivative size = 111, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {4139, 446, 88, 50, 63, 208} \[ \frac{\left (a+b \sec ^2(e+f x)\right )^{5/2}}{5 b^2 f}-\frac{(a+2 b) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{3 b^2 f}+\frac{\sqrt{a+b \sec ^2(e+f x)}}{f}-\frac{\sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a+b \sec ^2(e+f x)}}{\sqrt{a}}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4139
Rule 446
Rule 88
Rule 50
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \sqrt{a+b \sec ^2(e+f x)} \tan ^5(e+f x) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (-1+x^2\right )^2 \sqrt{a+b x^2}}{x} \, dx,x,\sec (e+f x)\right )}{f}\\ &=\frac{\operatorname{Subst}\left (\int \frac{(-1+x)^2 \sqrt{a+b x}}{x} \, dx,x,\sec ^2(e+f x)\right )}{2 f}\\ &=\frac{\operatorname{Subst}\left (\int \left (\frac{(-a-2 b) \sqrt{a+b x}}{b}+\frac{\sqrt{a+b x}}{x}+\frac{(a+b x)^{3/2}}{b}\right ) \, dx,x,\sec ^2(e+f x)\right )}{2 f}\\ &=-\frac{(a+2 b) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{3 b^2 f}+\frac{\left (a+b \sec ^2(e+f x)\right )^{5/2}}{5 b^2 f}+\frac{\operatorname{Subst}\left (\int \frac{\sqrt{a+b x}}{x} \, dx,x,\sec ^2(e+f x)\right )}{2 f}\\ &=\frac{\sqrt{a+b \sec ^2(e+f x)}}{f}-\frac{(a+2 b) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{3 b^2 f}+\frac{\left (a+b \sec ^2(e+f x)\right )^{5/2}}{5 b^2 f}+\frac{a \operatorname{Subst}\left (\int \frac{1}{x \sqrt{a+b x}} \, dx,x,\sec ^2(e+f x)\right )}{2 f}\\ &=\frac{\sqrt{a+b \sec ^2(e+f x)}}{f}-\frac{(a+2 b) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{3 b^2 f}+\frac{\left (a+b \sec ^2(e+f x)\right )^{5/2}}{5 b^2 f}+\frac{a \operatorname{Subst}\left (\int \frac{1}{-\frac{a}{b}+\frac{x^2}{b}} \, dx,x,\sqrt{a+b \sec ^2(e+f x)}\right )}{b f}\\ &=-\frac{\sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a+b \sec ^2(e+f x)}}{\sqrt{a}}\right )}{f}+\frac{\sqrt{a+b \sec ^2(e+f x)}}{f}-\frac{(a+2 b) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{3 b^2 f}+\frac{\left (a+b \sec ^2(e+f x)\right )^{5/2}}{5 b^2 f}\\ \end{align*}
Mathematica [F] time = 2.41833, size = 0, normalized size = 0. \[ \int \sqrt{a+b \sec ^2(e+f x)} \tan ^5(e+f x) \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.439, size = 924, normalized size = 8.3 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \sec \left (f x + e\right )^{2} + a} \tan \left (f x + e\right )^{5}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 6.67986, size = 1123, normalized size = 10.12 \begin{align*} \left [\frac{15 \, \sqrt{a} b^{2} \cos \left (f x + e\right )^{4} \log \left (128 \, a^{4} \cos \left (f x + e\right )^{8} + 256 \, a^{3} b \cos \left (f x + e\right )^{6} + 160 \, a^{2} b^{2} \cos \left (f x + e\right )^{4} + 32 \, a b^{3} \cos \left (f x + e\right )^{2} + b^{4} - 8 \,{\left (16 \, a^{3} \cos \left (f x + e\right )^{8} + 24 \, a^{2} b \cos \left (f x + e\right )^{6} + 10 \, a b^{2} \cos \left (f x + e\right )^{4} + b^{3} \cos \left (f x + e\right )^{2}\right )} \sqrt{a} \sqrt{\frac{a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}\right ) - 8 \,{\left ({\left (2 \, a^{2} + 10 \, a b - 15 \, b^{2}\right )} \cos \left (f x + e\right )^{4} -{\left (a b - 10 \, b^{2}\right )} \cos \left (f x + e\right )^{2} - 3 \, b^{2}\right )} \sqrt{\frac{a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{120 \, b^{2} f \cos \left (f x + e\right )^{4}}, \frac{15 \, \sqrt{-a} b^{2} \arctan \left (\frac{{\left (8 \, a^{2} \cos \left (f x + e\right )^{4} + 8 \, a b \cos \left (f x + e\right )^{2} + b^{2}\right )} \sqrt{-a} \sqrt{\frac{a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{4 \,{\left (2 \, a^{3} \cos \left (f x + e\right )^{4} + 3 \, a^{2} b \cos \left (f x + e\right )^{2} + a b^{2}\right )}}\right ) \cos \left (f x + e\right )^{4} - 4 \,{\left ({\left (2 \, a^{2} + 10 \, a b - 15 \, b^{2}\right )} \cos \left (f x + e\right )^{4} -{\left (a b - 10 \, b^{2}\right )} \cos \left (f x + e\right )^{2} - 3 \, b^{2}\right )} \sqrt{\frac{a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{60 \, b^{2} f \cos \left (f x + e\right )^{4}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a + b \sec ^{2}{\left (e + f x \right )}} \tan ^{5}{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \sec \left (f x + e\right )^{2} + a} \tan \left (f x + e\right )^{5}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]